home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / Switch.au3 < prev    next >
Text File  |  2006-06-17  |  224b  |  13 lines

  1. Switch @HOUR
  2. Case 6 To 11
  3.     $msg = "Good Morning"
  4. Case 12 To 17
  5.     $msg = "Good Afternoon"
  6. Case 18 To 21
  7.     $msg = "Good Evening"
  8. Case Else
  9.     $msg = "What are you still doing up?"
  10. EndSwitch
  11.         
  12. MsgBox(0, Default, $msg)
  13.